package controller

import (
	"context"
	"server/api"
	"server/logic"
)

type SchoolController struct {
	*logic.SchoolLogic
}

func NewSchoolController() *SchoolController {
	return &SchoolController{
		logic.NewSchoolLogic(),
	}
}


// CreateStudent 添加学生
func (c *SchoolController) CreateStudent(ctx context.Context, req *api.CreateMemberReq) (*api.Response, error) {
	// 。。。鉴权判断。。。
	return c.SchoolLogic.CreateStudent(ctx, req)
}

// CreateTeacher 添加老师
func (c *SchoolController) CreateTeacher(ctx context.Context, req *api.CreateMemberReq) (*api.Response, error) {
	// 。。。鉴权判断。。。
	return c.SchoolLogic.CreateTeacher(ctx, req)
}

// QueryMember 人员查询 ID
func (c *SchoolController) QueryMemberById(ctx context.Context, req *api.QueryMemberByIdReq) (*api.Response, error) {
	// 。。。鉴权判断。。。
	return c.SchoolLogic.QueryMemberById(ctx, req)
}

//// CreateClass 新建一个班级


